#include <errno.h>
#include <iomanip>
#include <iostream>
#include <sched.h>
#include <string.h>

// using namespace leon_utl;
using std::cerr;
using std::cout;
using std::endl;

int main() {
	uint32_t cpu {}, node {};
	if( getcpu( &cpu, &node ) != 0 ) {
		cerr << "Error on 'getcpu': \"" << strerror( errno ) << "\"." << endl;
		exit( EXIT_FAILURE );
	}

	cout << "I'm running on cpu" << cpu << ", node" << node << endl;

	return EXIT_SUCCESS;
}

// kate: indent-mode cstyle; indent-width 4; replace-tabs off; tab-width 4;
